package busstopfinder.ui;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import busstopfinder.db.ARData;
import busstopfinder.db.LocalDataSource;


/**
 * This class extends the AugmentedReality and is designed to be an example on how to extends the AugmentedReality
 * class to show multiple data sources. Test to be done by anemet :)
 * 
 * @author Justin Wetherell <phishman3579@gmail.com>
 */
public class Demo extends AugmentedReality {
    private static final String TAG = "Demo";
    public static Context mCtx;
    
	/**
	 * {@inheritDoc}
	 */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        // Save context for later use
        Demo.mCtx = this.getApplicationContext();

        //Local
        LocalDataSource localData = new LocalDataSource(this.getResources());
        ARData.addMarkers(localData.getMarkers());
        
    }

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected void markerTouched(Marker marker) {

		
		Intent i = new Intent(this, BusLineActivity.class);
		i.putExtra("lines", marker.getBusLines());
		startActivity(i);
	}


}
